package org.demo.userapi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * user
 *
 * @author xl
 * @date 2020/8/25 23:29
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Value("${word}")
    private String word;

    @Value("${appenv}")
    private String appenv;

    @Value("${data.username}")
    private String dataUser;


    @GetMapping("info")
    public String method() {

        return appenv + " -- " + word + ">> datauser： " + dataUser;
    }

}
